<?php
namespace frontend\controllers;

use common\logic\hprose\Client;

/**
 * Site controller
 */
class ClientController extends ClientBaseController
{
    /* 用户端
    * @return mixed
    */
    public function actionUser() {
        $route = 'http://hprose-test.com/service/service-start?type=user';//开启用户的
        // $route = 'http://hprose-test.com/service/service-start?type=project';//开启项目的
        $user = new Client($route,false);
        return ($user->getUserInfo([
            'id' => 1,
        ]));
    }
    
    
}
